<template>
  <WangEditor v-if="designer.selectedWidget?.id === widget.id" v-model:value="widget.elProps.html"></WangEditor>
  <div v-else v-html="widget.elProps.html"></div>
</template>
<script setup lang="ts" name="HtmlWidget">
import WangEditor from "@/components/WangEditor/index.vue";
defineProps({
  designer: {
    type: Object
  },
  widget: {
    type: Object
  }
});
</script>
<style lang="scss" scoped></style>
